/*
 * This file is part of b.AMP.
 *
 * b.AMP is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * b.AMP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with b.AMP.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __FORMAT_HPP__
#define __FORMAT_HPP__

#include "format.h"

namespace bamp
{
    typedef bamp_format Format;
    typedef bamp_enc    Encoding;
    typedef bamp_order  Order;
}

static inline bool operator==(const bamp::Format& lhs, const bamp::Format& rhs)
{
    return
        lhs.enc   == rhs.enc  &&
        lhs.rate  == rhs.rate &&
        lhs.chan  == rhs.chan &&
        lhs.order == rhs.order;
}

static inline bool operator!=(const bamp::Format& lhs, const bamp::Format& rhs)
{
    return !(lhs == rhs);
}

#endif // __FORMAT_HPP__
